# 在这里，数据库叫作 Pymysql
import pymysql
connect = pymysql.connect(user='root', password='root', host='localhost', database='school', charset='UTF8')
cursor = connect.cursor()
sql = 'select * from students limit 2'
cursor.execute(sql)
print(cursor.fetchall())
cursor.close()
connect.close()
